package com.golang.api.controller;


import com.golang.api.service.IOrderInfoService;
import com.golang.api.util.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: zxq
 * @date: 2020/5/31 15:05
 * @description:支付相关
 */
@RestController
@Slf4j
@RequestMapping("/api/pay")
public class PayController {

    @Autowired
    private IOrderInfoService orderInfoService;

    /**
     * 付款订单的预支付会话标识
     */
    @PostMapping("prepay")
    public Result prepay( HttpServletRequest request) {
        return orderInfoService.prepay(request);
    }


}
